<?php

namespace app\common\validate\xilumarket;

use think\Validate;

class UserAuth extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
       // 'user_id' => ['require'],
        'username|姓名' => ['require'],
        'idcard_type|证件类型' => ['require','in:1,2'],
        'idcard_no|证件号'  =>  ['require','length:18,20'],
        'idcard_face_image|身份证人像' => ['require'],
        'idcard_back_image|身份证国徽' => ['require'],
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];

}
